<%@page import="Product.ProductVo"%>
<%@page import="Product.ProductMyba"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%
	request.setCharacterEncoding("UTF-8");
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>

<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>상품 안내</title>

<!-- bootstrap -->
	<link href="${pageContext.request.contextPath }/intranet/product/product.css" rel="stylesheet">
</head>
<body>
	<jsp:useBean id="vo" class="Product.ProductVo" />
	<jsp:setProperty property="*" name="vo" />
	<%
		ProductMyba product = new ProductMyba();
		product.setProductVo(vo);
		ProductVo v = product.view();
		String prd = "";
		String yn=v.getPD_yn();
		String url = "../intranet/product/photo/" + v.getPD_fnm();
	%>
	<script type="text/javascript">
		window.onload=function (){
		
	var con = document.getElementById("PD_yn");
	<%if(yn.equals("Y")){%> con.options[0].selected = true;
	<%}else if(yn.equals("N")){%> con.options[1].selected = true;
	<%}%>
		}
		</script>
	<form action="index.jsp?inc_content=./product/product_modify.jsp" method="post">
	<div id="PMain" style="height: 800px;">
	<div id="PTop" class="panel panel-default" style="height: 120px;">
		
			<div style="width:445px; margin-top:20px; margin-left:25px; line-height: 120px; float:left;; font-size:30px;">
			<h1>
			상품 정보<small>Product View</small>
		</h1>
			</div>
			<input type="button" value="목록" style="float: right;  margin-right: 10px; margin-top:65px;" class="btn btn-warning btn-sm" onclick="history.back()">
			<input type="submit" value="상품수정" style="float: right;  margin-right: 10px; margin-top:65px;" class="btn btn-info btn-sm" >
			<input type="hidden" value="A" name="MD_PP" id="MD_PP">
			<input type="hidden" value="<%=v.getPD_no() %>" name="PD_no">
		</div>

			<div id="PContent" style="margin-top: 20px; height: 470px;"
				class="panel panel-default">
				<div id='previewId' class="panel panel-default"
					style='margin: 30px; margin-right: 15px; float: left; width: 350px; height: 411px; color: black; font-size: 9pt;'>
					<img src="<%=url%>" style="width: 350px; height: 411px;"></div>
				<div style="text-align: center; float: left;">

					<div style="height: 300px; width: 150px; margin-top: 30px;">
						<div class="menu" style="border-top: 2px solid #eaeaea;">상품명</div>
						<div class="menu">최소한도</div>
						<div class="menu">최대한도</div>
						<div class="menu">대출금리</div>
						<div class="menu">대출기간</div>
						<div class="menu">상환방법</div>
						<div class="menu">사용여부</div>
						<div
							style="height: 128px; line-height: 128px; border-bottom: 2px solid #eaeaea; border-left: 2px solid #eaeaea; border-right: 2px solid #eaeaea;">상품내용</div>
					</div>
				</div>
	
			<div
				style="height: 300px; float: left; width: 505px; margin-top: 30px; margin-left: 15px;">
				<div class="menu2">
					<input type="text" class="form-control"
						style="height: 30px; margin-top: 5px;" name='nm' readonly="readonly" value="<%=v.getPD_nm() %>">
				</div>
				<div class="menu2">
					<input type="button" value="100만원" class="btn btn-default"
						style="margin-top: -3.5px; width: 90px" ><input
						type="button" value="500만원" class="btn btn-default"
						style="margin-top: -3.5px; width: 90px;"><input
						type="button" value="1,000만원" class="btn btn-default"
						style="margin-top: -3.5px;">
					<div style="width: 225px; float: right;">
						<input type="text" class="form-control money" style="height: 30px;"
							name="min" value="<%=v.getPD_min() %>" readonly="readonly" >
					</div>
				</div>
				<div class="menu2">
					<input type="button" value="1,000만원" class="btn btn-default"
						style="margin-top: -3.5px;"><input type="button"
						value="3,000만원" class="btn btn-default"
						style="margin-top: -3.5px;"><input type="button"
						value="5,000만원" class="btn btn-default"
						style="margin-top: -3.5px;">
					<div style="width: 225px; float: right;">
						<input type="text" class="form-control money" style="height: 30px;"
							name="max" value="<%=v.getPD_max() %>" readonly="readonly">
					</div>
				</div>
				<div class="menu2">
					<input type="text" class="form-control money" style="height: 30px;"
						name="rate" value="<%=v.getPD_rate() %>" readonly="readonly">
				</div>
				<div class="menu2">
					<input type="button" value="12개월" class="btn btn-default"
						style="margin-top: -3.5px; width: 90px"><input
						type="button" value="24개월" class="btn btn-default"
						style="margin-top: -3.5px; width: 90px;"><input
						type="button" value="36개월" class="btn btn-default"
						style="width: 90px; margin-top: -3.5px;">
					<div style="width: 225px; float: right;">
						<input type="text" class="form-control money" style="height: 30px; text-align: right;"
							name="PD_prd" value="<%=v.getPD_prd()%>" readonly="readonly">
					</div>
				</div>
				<div class="menu2">
					<input type="button" value="원금균등" class="btn btn-default"
						style="margin-top: -3.5px; width: 90px"><input
						type="button" value="원리금균등" class="btn btn-default"
						style="margin-top: -3.5px; width: 90px;"><input
						type="button" value="원금만기" class="btn btn-default"
						style="width: 90px; margin-top: -3.5px;">
					<div style="width: 225px; float: right;">
						<input type="text" class="form-control" style="height: 30px;"
							name="PD_pback" value="<%=v.getPD_pback()%>" readonly="readonly">
					</div>
				</div>
			
					<div style="float: left; margin-top:5px; margin-bottom: 5px;">
						<select name="PD_yn" id="PD_yn"> 
							<option value="Y">Y</option>
							<option value="N">N</option> 
					    </select> 
					</div>
				<div style="margin-top: 5px;">
					<textarea rows="6"  class='form-control'
						name="content" readonly="readonly"><%=v.getPD_content() %></textarea>
				</div>

			</div>
		</div>
	
	</div>
</form>
</body>
</html>